package com.situ.mall.service;

import cn.hutool.db.sql.Order;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.situ.mall.pojo.dto.OrderDTO;
import com.situ.mall.pojo.entity.OrderItem;
import com.situ.mall.pojo.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.situ.mall.pojo.query.OrderQuery;
import com.situ.mall.pojo.vo.OrderVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Gao
 * @since 2025-10-15
 */
public interface IOrdersService extends IService<Orders> {

    Long add(OrderDTO orderDTO);

    void pay(Long orderNo);

    List<OrderVO> selectListByUser(Integer userId);

    IPage<Orders> list(OrderQuery orderQuery);

    List<OrderItem> selectOrderItemByOrderNo(Long orderNo);

    void cancelOrder(Long orderNo);
}
